package com.ego.user.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Ares
 * @date 2020-12-7
 */
@Data
@TableName("tb_user_address")
public class UserAddress implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    @NotEmpty(message = "收货人不能为空")
    private String receiverName;
    private String area;
    private String addressDetail;
    private String tellphone;
    private String email;
    private String addressAlias;
    private Integer state;



}
